<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title></title>
	<style type="text/css">
		*{
			margin: 0;
			padding: 0;
		}
		li{
			list-style: none;
			margin: 0 10px;
		}
		ul{
			display: flex;
			flex-wrap: wrap;
		}
		li img{
			width: 150px;
		}
		body{
			background: black;
		}
		.box{
			margin: 100px auto;
			width: 510px;
			border: 1px solid #fff;
		}
	</style>
</head>
<body>
<div class="box">
	<ul>
		<li>
			<img src="C:\Users\Administrator\Desktop\毕设\img\月季.jpg">
		</li>
		<li>
			<img src="C:\Users\Administrator\Desktop\毕设\img\月季.jpg">
		</li>
		<li>
			<img src="C:\Users\Administrator\Desktop\毕设\img\月季.jpg">
		</li>
		<li>
			<img src="C:\Users\Administrator\Desktop\毕设\img\月季.jpg">
		</li>
		<li>
			<img src="C:\Users\Administrator\Desktop\毕设\img\月季.jpg">
		</li>
		<li>
			<img src="C:\Users\Administrator\Desktop\毕设\img\月季.jpg">
		</li>
	</ul>
</div>

	<script type="text/javascript" src="../jquery-3.2.1.js"></script>
	<script type="text/javascript">
		$('li').mouseenter(function() {
			$(this).css('opacity',1).siblings().css('opacity',.4)
		})
		$('li').mouseleave(function() {
			$('li').css('opacity',1)
		})

	</script>
</body>
</html>